﻿{extend name="index/index" /}

{block name='nav'}{/block}
{block name='main'}



<div class="wrap clearfix">
	<div class="sub_cont fl">
    	<div class="box mt10 list">
        	<div class="title fontS16 clearfix">
                <span class="fl">{$list.position_name}</span>
                <i class="guan"></i>
                 <i class="bao"></i> 
                  <a href="javascript:void(0);" id="collect_job" class="{$iscollect==1?'sc-on':'sc'}" ></a>
                  <!-- 收藏 -->
                  <input type="hidden" name="job_id" id="job_id" value="{$list.position_id}"/>
                  <input type="hidden" name="iscollect" id="iscollect" value="{$iscollect}"/>
                  <!-- <a href="javascript:void(0);" id="collect_job" class="sc" ></a> -->
                  </div>
            <div class="lineH36">
                <em class="fontC02 fr">{$list.position_payway}</em> 
                <span>类型：{$type}</span>丨
                <span>发布时间：{:date('Y-m-d',$list.position_publish)}</span>
            </div>
            <div class="lineH36">
            <span>已报名：{$list.position_apply}</span>
                        </div>
            <div class="card mt10">
             </div>
        </div>
        <div class="box mt10">
        	<div class="clearfix">
            	<ul class="news lineH28">
                	<li class="fontBold fontS16">招聘信息</li>
                    <li>招聘人数：{$list.position_num}</li>
                    <li>工作日期：{:date('Y-m-d',$list.position_start)}至{:date('Y-m-d',$list.position_end)}</li>
                    <li>结算方式：{$list.position_payway}</li>
                    <li>联  系 人：仝旭阳</li>
                    <li>联系电话：{$list.position_tel}</li>
                    <li>工作地点：{$list.position_place}</li>
                </ul>
                <input type='hidden' value='' id='mappos'>
                 <input type="hidden" value="1" id="mapxy">
                <div class="map mt10">
                    <div id="container" style="height:260px;width:645px;"></div> 
                    <!-- <iframe width="604" height="881" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://j.map.baidu.com/LUDqO"></iframe> -->
                </div>
                            </div>
            <div class="detail mt20">
                <p class="fontBold fontS16">兼职内容</p>
                <p>{$list.position_require}</p>
            </div>
            <div class="center mt30">
                {eq name="$Think.session.usercate" value="1"}
                     <a class="more" href="javascript:void(0)"  id="apply_job_"  onclick="getmap()"  >立即报名<i class="fr ml5"></i></a>
                {/eq}
            </div>
        </div>
    
    </div>
    <div class="side fr">
    	<div class="box mt10">
            <p class="fontBold fontS16"><a href="javascript:void(0);" id="collect_company" class="<?php if($collectcompany==1||$collectcompany==3) echo 'sc-on';else echo 'sc'; ?>" ></a>公司信息</p>
            <input type="hidden" name="company_id" id="company_id" value="{$company.company_cid}"/>
            <input type="hidden" name="collectcompany" id="collectcompany" value="{$collectcompany}"/>
            <ul class="lineH28 mt10">
            <li>公司名称：{$company.company_name}</li>
            <li>公司地址：{$company.company_address}</li>
            <li>企业认证：{$company.company_status==1?'已验证':'未验证'}</li>
            <li>公司简介：{$company.company_intro}</li>
            </ul>
        </div>
        <div class="box mt10">
        	<!--<p class="fontBold fontS16">该公司其他兼职</p>
            <ul class="other mt10">
                        </ul>-->
            <p class="fontBold fontS16">其他类似兼职</p>
            <ul class="other mt10">
                {volist name='other' id='v'}
                <li>
                    <a href="{:url('index/index/message',['id'=>$v.position_id])}">
                    <span class="fontC02 fr">{$v.position_payway}</span>
                   {$v.position_name}
                    </a>
                </li>
                {/volist}
            </ul>
        </div>
    </div>
</div>

{/block}





</body>
</html>
<input type="hidden" value='{$Think.session.usercate==2}' id='p'>
<!-- 3FrsGU2GbhEdUe5Vu1A8COE0oHIUGDCW -->
{block name='js'}
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.5&ak=3FrsGU2GbhEdUe5Vu1A8COE0oHIUGDCW"></script>
<script type="text/javascript"> 
    $(function(){
           var map = new BMap.Map("container");
            map.centerAndZoom("{$place}", 12);//这里是初始地图所显示的城市
            map.enableScrollWheelZoom();    //启用滚轮放大缩小，默认禁用

            if($('#p').val()==2){
                $('#apply_job_').css('display','none');
                $('#collect_company').css('display','none');
                $('#collect_job').css('display','none');
            }else{
                $('#collect_company').css('display','block-inline');
                $('#collect_job').css('display','block-inline');
                $('#apply_job_').css('display','block-inline');
            }
    }) 

    function getmap(){
        var url = "/index/index/showapply?pid="+{$list.position_id};  //转向网页的地址;
        var name = '工作地点';                                //网页名称，可为空;
        var iWidth = 660;                                     //弹出窗口的宽度;
        var iHeight = 450;                                    //弹出窗口的高度;
        //获得窗口的垂直位置
        var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
        //获得窗口的水平位置
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
        window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no');
    }

    function quxiao(){
        shadboxFun('qx',1);
    }
    
</script>  
{/block}

